<?php

namespace common\jobs;

use Yii;
use yii\helpers\VarDumper;

/**
 * TestJob
 * Class JPushJob.
 */
class TestJob extends \yii\base\BaseObject implements \yii\queue\JobInterface {

    public $content = null;
    public $data = null;

    /**
     * @inheritdoc
     */
    public function execute($queue) {
        Yii::error('[TestJob EXECUTE]', 'queue');

        Yii::error('[Test Queue Content]:' . VarDumper::export($this->content), 'queue');
        Yii::error($this->data, 'queue');
        return true;
    }

}
